package com.imooc.aop.service;

import com.imooc.aop.domain.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName ProductService
 * @Description TODO
 * @Author Wxg
 * @Date 2018/11/14 13:01
 * @Version 1.0
 */
@Service
public class ProductServiceV1 {

    @Autowired
    AuthService authService;

    public void insert(Product product) {
//        checkAccess
        authService.checkAccess();
        System.out.println("insert product");
    }

    public void delete(Long id) {
        authService.checkAccess();
        System.out.println("delete product");
    }
}
